package com.hhkj.admin.course.service.extend;

import com.hhkj.admin.course.domain.CourseBankType;
import com.hhkj.admin.course.model.dopo.CourseBankTypeDo;
import com.hhkj.admin.course.model.dopo.CourseBankTypePo;
import com.ruoyi.common.base.biz.service.extend.BaseExtendService;

/**
 * CourseBankTypeServiceExtend
 *
 * @author HHKJ-SERVER-ZJ
 * @since 2023/6/8 10:37
 */
public interface CourseBankTypeExtendService
        extends BaseExtendService<CourseBankType, CourseBankTypeDo, CourseBankTypePo> {

    /**
     * 根据科目id获取题库类型信息
     *
     * @param courseId 课程id
     * @return 题目类型
     */
    CourseBankType getDefaultTypeByCourseId(Long courseId);

    /**
     * 根据课程id 数据id 获取课程题库类型信息
     *
     * @param courseId 课程id
     * @param id       题库类型id
     * @return 课程题库类型信息
     */
    CourseBankType getByCourseIdAndIdNotDisable(Long courseId, Long id);
}
